﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LookupBusinessType.ascx.cs"
    Inherits="ServicesDirectory.UserControl.LookupBusinessType" %>
<style type="text/css">
    .listContact
    {
        margin: 0px 5px 0px 5px;
        border: 1px solid black;
        background: #f4f9fb;
        height: 31px;
    }
    .ButonContact
    {
        margin-left: 5px;
    }
    .gbtitle
    {
        background-color: #d1d1d1;
        height: 30px;
        -moz-border-radius-topleft: 5px;
        -moz-border-radius-topright: 5px;
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
        box-shadow: 5px 3px 5px #ccc;
        border-top: 1px solid #aaaaaa;
        border-right: 1px solid #aaaaaa;
        border-left: 1px solid #aaaaaa;
    }
</style>
<div id="draggable" class="bgPopup">
    <div class="TitleManarer">
        Search Business Type
          <asp:Button runat="server" CausesValidation="false" CssClass="CloseButtonPopup" ID="cmdClose" />
    </div>
    <div class="spaceManager">
    </div>
    <div class="listContact">
        <div class="spaceManager">
        </div>
        <div class="titleCol1">
            BusinessName:</div>
        <div class="titleCol2">
            <asp:TextBox runat="server" ID="txtBusinessName" Width="99%"></asp:TextBox></div>
        <div class="titleCol1">
            SICCode:</div>
        <div class="titleCol2">
            <asp:TextBox runat="server" ID="txtSicCode" Width="99%"></asp:TextBox>
        </div>
    </div>
    <div class="spaceManager">
    </div>
    <div class="ButonContact">
        <asp:Button runat="server" CausesValidation="False" ID="btnSearch" Text="Search" Width="60px"  />
        <asp:Button runat="server" CausesValidation="False" Width="60px" ID="btnNone" Text="None" />
        <asp:Button runat="server" CausesValidation="False" Width="60px" ID="btnClear" Text="Clear"  />
    </div>
    <div class="spaceManager">
    </div>
    <div class="contentGrid">
        <div class="hearderGrid">
            <div class="BusinessTypeHeaderCol0">
                &nbsp;
            </div>
            <div class="BusinessTypeHeaderCol1">
                Business Name</div>
            <div class="BusinessTypeHeaderCol2">
                SIC Code</div>
        </div>
        <asp:Repeater runat="server" ID="rptBusiness">
            <ItemTemplate>
                <asp:HiddenField runat="server" ID="hdContactId" Value='<%#Eval("BusinessId") %>' />
                <div class="rowGrid">
                    <div class="BusinessTypeContentCol0">
                        <asp:RadioButton runat="server" GroupName="ClickOne" ID="rbtSelect" /></div>
                    <div class="BusinessTypeContentCol1">
                        <%#Eval("BusinessName") %>
                    </div>
                    <div class="BusinessTypeContentCol2">
                        <%#Eval("SicCode") %></div>
                </div>
            </ItemTemplate>
            <AlternatingItemTemplate>
                <asp:HiddenField runat="server" ID="hdContactId" Value='<%#Eval("BusinessId") %>' />
                <div class="alterRowGrid">
                    <div class="BusinessTypeContentCol0">
                        <asp:RadioButton runat="server" GroupName="ClickOne" ID="rbtSelect" /></div>
                    <div class="BusinessTypeContentCol1">
                        <%#Eval("BusinessName") %>
                    </div>
                    <div class="BusinessTypeContentCol2">
                        <%#Eval("SicCode") %></div>
                </div>
            </AlternatingItemTemplate>
        </asp:Repeater>
        <asp:Panel runat="server" Visible="false" ID="pnNoRecord" CssClass="alterRowGrid">
        <center>No record found!</center>
        </asp:Panel>
        <asp:HiddenField runat="server" ID="currentContactId" />
    </div>
    <div class="PagingList">
        <span>
            <asp:Button runat="server" CausesValidation="False" CssClass="backAllList" ID="btnBackAll" />
        </span><span>
            <asp:Button runat="server" CausesValidation="False" CssClass="backList" ID="btnBacklist" /></span> <span style="padding-left: 5px;">
                Page</span> <span style="padding-left: 5px;">
                    <asp:TextBox Text="1" runat="server" Width="20px" ID="tbPageNumber"></asp:TextBox></span>
        <span>of</span> <span>
            <asp:Label runat="server" Text="1" ID="lblTotalPage"></asp:Label></span> <span>
                <asp:Button runat="server" CausesValidation="False" CssClass="nextAll" ID="btnNextAll" />
            </span><span>
                <asp:Button runat="server" CausesValidation="False" CssClass="nextList" ID="btnNext" />
            </span>
    </div>
    <div class="spaceManager">
    </div>
    <div class="ButonContact">
        <asp:Button runat="server" CausesValidation="False" Width="60px" ID="btnSelect" Text="Select" />
        <asp:Button runat="server" CausesValidation="False" Width="60px" ID="btnClose" Text="Close"/>
        &nbsp;
        <asp:Label runat="server" ID="lblMessage"></asp:Label>
    </div>
    <div class="spaceManager">
    </div>
</div>
